package com.hh.erp;

import com.hh.erp.entity.SysUser;
import com.hh.erp.util.JsonUtil;
import com.hh.erp.util.StringUtil;
import com.hh.erp.util.http.Constants;

public class Main {
    public static void main(String[] args) {
        String message = "### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 16\n" +
                "### The error may exist in file [D:\\Microsoft VS Code\\project\\HH-ERP\\target\\classes\\com\\hh\\erp\\mapper\\xml\\SysUserMapper.xml]\n" +
                "### The error may involve defaultParameterMap\n" +
                "### The error occurred while setting parameters\n" +
                "### SQL: select         u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber,         u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time,         u.remark, d.dept_name, d.leader         from sys_user u         left join sys_dept d on u.dept_id = d.dept_id         where u.del_flag = '0'                                                                                             limit ?,?\n" +
                "### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 16\n" +
                "; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10,10' at line 16\n";
        System.out.println(StringUtil.contains(message, "xsss"));
    }

}